import { createApp } from 'vue'
import App from './App.vue'
import { setupComponents } from './plugins/andvue';
import "@xu-ui/theme-chalk/index.scss";
import XTree from '@xu-ui/components/Tree';
import Icon from '@xu-ui/components/Icon';
import XForm from '@xu-ui/components/Form';
import XButton from '@xu-ui/components/Button';
import XInput from '@xu-ui/components/Input';
import XSkeleton from '@xu-ui/components/Skeleton';
import XSkeletonAvator from '@xu-ui/components/Skeleton-avatar';
import SkeletonParagraph from '@xu-ui/components/Skeleton-paragraph';


const plugins = [
  Icon,
  XTree,
  XForm,
  XButton,
  XInput,
  XSkeleton,
  XSkeletonAvator,
  SkeletonParagraph
]


const app = createApp(App)
plugins.forEach(plugin => app.use(plugin))

setupComponents(app);
app.mount('#app')
